package com.yckj.activechicken.business.goods.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yckj.activechicken.business.goods.model.po.RemoveFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class GoodsInfo implements Serializable {
    private String goodsId;

    private String goodsName;

    private String goodsCategory;

    private String goodsType;

    private String goodsImage;

    private String goodsDes;

    private String goodsPrice;

    private String goodsMeasurementUnit;

    private String waringNumber;

    private String goodsBarCode;

    private String goodsQrCode;

    private String delFlag;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 货品属性列表，json字符串
     */
    private String goodsAttrListJson;

    /**
     * 货品属性列表
     */
    private List<GoodsAttribute> goodsAttributeList;

    /**
     * 上传商品图片列表
     */
    private MultipartFile[] imageFile;

    /**
     * 删除现有图片集合
     */
    private List<RemoveFile> removeFileList;

    private String removeFileListJson;

    private static final long serialVersionUID = 1L;


    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId == null ? null : goodsId.trim();
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public String getGoodsCategory() {
        return goodsCategory;
    }

    public void setGoodsCategory(String goodsCategory) {
        this.goodsCategory = goodsCategory == null ? null : goodsCategory.trim();
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType == null ? null : goodsType.trim();
    }

    public String getGoodsImage() {
        return goodsImage;
    }

    public void setGoodsImage(String goodsImage) {
        this.goodsImage = goodsImage == null ? null : goodsImage.trim();
    }

    public String getGoodsDes() {
        return goodsDes;
    }

    public void setGoodsDes(String goodsDes) {
        this.goodsDes = goodsDes == null ? null : goodsDes.trim();
    }

    public String getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(String goodsPrice) {
        this.goodsPrice = goodsPrice == null ? null : goodsPrice.trim();
    }

    public String getGoodsMeasurementUnit() {
        return goodsMeasurementUnit;
    }

    public void setGoodsMeasurementUnit(String goodsMeasurementUnit) {
        this.goodsMeasurementUnit = goodsMeasurementUnit == null ? null : goodsMeasurementUnit.trim();
    }

    public String getWaringNumber() {
        return waringNumber;
    }

    public void setWaringNumber(String waringNumber) {
        this.waringNumber = waringNumber == null ? null : waringNumber.trim();
    }

    public String getGoodsBarCode() {
        return goodsBarCode;
    }

    public void setGoodsBarCode(String goodsBarCode) {
        this.goodsBarCode = goodsBarCode == null ? null : goodsBarCode.trim();
    }

    public String getGoodsQrCode() {
        return goodsQrCode;
    }

    public void setGoodsQrCode(String goodsQrCode) {
        this.goodsQrCode = goodsQrCode == null ? null : goodsQrCode.trim();
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag == null ? null : delFlag.trim();
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getGoodsAttrListJson() {
        return goodsAttrListJson;
    }

    public void setGoodsAttrListJson(String goodsAttrListJson) {
        this.goodsAttrListJson = goodsAttrListJson;
    }

    public MultipartFile[] getImageFile() {
        return imageFile;
    }

    public void setImageFile(MultipartFile[] imageFile) {
        this.imageFile = imageFile;
    }


    public List<GoodsAttribute> getGoodsAttributeList() {
        return goodsAttributeList;
    }

    public void setGoodsAttributeList(List<GoodsAttribute> goodsAttributeList) {
        this.goodsAttributeList = goodsAttributeList;
    }

    public List<RemoveFile> getRemoveFileList() {
        return removeFileList;
    }

    public void setRemoveFileList(List<RemoveFile> removeFileList) {
        this.removeFileList = removeFileList;
    }

    public String getRemoveFileListJson() {
        return removeFileListJson;
    }

    public void setRemoveFileListJson(String removeFileListJson) {
        this.removeFileListJson = removeFileListJson;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", goodsId=").append(goodsId);
        sb.append(", goodsName=").append(goodsName);
        sb.append(", goodsCategory=").append(goodsCategory);
        sb.append(", goodsType=").append(goodsType);
        sb.append(", goodsImage=").append(goodsImage);
        sb.append(", goodsDes=").append(goodsDes);
        sb.append(", goodsPrice=").append(goodsPrice);
        sb.append(", goodsMeasurementUnit=").append(goodsMeasurementUnit);
        sb.append(", waringNumber=").append(waringNumber);
        sb.append(", goodsBarCode=").append(goodsBarCode);
        sb.append(", goodsQrCode=").append(goodsQrCode);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}